package com.xl.observer.common;

/**
 * 1、是自身的状态和目标的状态发生改变
 */
public class CommonConcreateObserver implements Observer {

    private String observerStatus;

    @Override
    public void update(Subject subject) {
        observerStatus = ((CommonConcreateSubject)subject).getSubjectStatus();
    }
}
